# def get_Max(a, b):
#     if a > b:
#         return a
#     else:
#         return b
#
#
# a = input('请输入一个数：')
# b = input('请输入一个数：')
# c = get_Max(a, b)
# print(c)
import random

# def input_username():
#     return input('用户名：')
#
#
# def input_password():
#     return input('密码：')
#
#
# def login():
#     if input_username() == 'admin' and input_password() == '123456':
#         print("登录成功")
#     else:
#         print('用户名或密码错误')
#
#
# login()


# import tools
#
# sum1 = tools.sum_2_num(10,20)
# print(sum1)


# from tools import sum_2_num
# print(sum_2_num(2,3))

# from hm_message.send_message import send
# from hm_message.receive_message import receive
# send()
# receive()
# from hm_message.login_service import login
# login('admin','123456','8888')
# login('admin', '123456', '8787')
# login('adada', '123456', '8888')
# login('admin','213131','8888')


# def print_user_info(num_user):
#     for k,v in num_user.items():
#         print(k,v)
#
# name1 = input('输入姓名：')
# age = input('输入年龄：')
# address = input('输入住址：')
# num_user = {'name':name1, 'age':age, 'address':address}
# print_user_info(num_user)


# def my_max():


# def my_max(list1):
#     max1 = list1[0]
#     for i in list1:
#         # print(i)
#         # print(len(list1)-1)
#         if i > max1:
#             max1 = i
#     return max1
#
#
#
# list1 = []
# for i in range(10):
#     list1.append(random.randint(1,100))
# print(list1)
# print(my_max(list1))

# def sum_test(b):
#     num = 0
#     for i in range(1,b+1):
#         num += i
#     return num
#
# a = random.randint(1,100)
# print(a)
# num = sum_test(a)
# print(num)




# my_list = [{'id': 1, 'money': 10}, {'id': 2, 'money': 20}, {'id': 3, 'money': 30}, {'id': 4, 'money': 40}]
# print(my_list[0]['money'] +10)
# def func():
#     for i in my_list:
#         if i.get('id') % 2 == 0:
#             i['money'] = i['money'] + 10
#         else:
#             i['money'] = i['money'] + 20
#     print(my_list)
# def func():
#     for i in my_list:
#         if i['id'] % 2 == 1:
#             i['money'] = i['money'] + 20
#         else:
#             i['money'] = i['money'] + 10
#     print(my_list)
# def func():
#     for i in range(4):
#         if my_list[i]['id'] % 2 == 1:
#             my_list[i]['money'] = my_list[i]['money'] + 20
#         else:
#             my_list[i]['money'] = my_list[i]['money'] + 10
#     print(my_list)
# func()

